//
//  Tire.m
//  chapter_foundation
//
//  Created by 경민 이 on 10. 11. 25..
//  Copyright 2010 huskycode. All rights reserved.
//

#import "Tire.h"


@implementation Tire

- (id) init
{
	if (self = [super init]) {
		m_pressure = 34.0;
		m_treadDepth = 20.0;
	}
	
	return (self);	
}

- (void) setPressure: (float) p
{
	m_pressure = p;
}

- (float) pressure
{
	return (m_pressure);
}

- (void) setTreadDepth: (float) td 
{
	m_treadDepth = td;
}

- (float) treadDepth
{
	return (m_treadDepth);
}

- (NSString*) description
{
	NSString* desc;
	
	desc = [NSString stringWithFormat:@"Tire Pressure: %.1f TreadDepth : %.1f",m_pressure,m_treadDepth];
	return (desc);
}



@end
